package edu.gatech.cs2340.sharks.fms.data;

/**
 * User.java
 * @author Matthew Schauer
 * 
 * Contains information associated with a user of the system
 */

public class User implements Comparable
{
	public enum Role { CLIENT, ADMIN };
	
	private String handle;
	public String session;
	public String name;
	private Role role;
	public String location;
	public String profile;
	public String email;
	public boolean valid;
	
	public User(String handle, String session, String name, Role role, String location, String profile, String email, boolean valid)
	{
		this.handle = handle;
		this.session = session;
		this.name = name;
		this.role = role;
		this.location = location;
		this.profile = profile;
		this.email = email;
		this.valid = valid;	
	}
	
	public String handle() { return handle; }
	public Role role() { return role; }
	public int compareTo(Object other) { return handle.compareTo(((User) other).handle); }
}
